import Mock from 'mockjs';
import home from './bookHome';
import shelf from './bookShelf';
import list from './bookList';
import flatList from './bookFlatList';

// (正则,'请求方式',请求文件)
// get请求这个地址,返回响应文件
Mock.mock(/\/book\/home/, 'get', home);
Mock.mock(/\/book\/shelf/, 'get', shelf);
Mock.mock(/\/book\/list/, 'get', list);
Mock.mock(/\/book\/flatList/, 'get', flatList);
